﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;

using ProjectBase.Core;

namespace ProjectBase.Mvc.Web.Controls.Content
{
    public class MvcHtmlStringControl : VisualControl<ICoreModel>
    {
        protected readonly MvcHtmlString HtmlString;

        public MvcHtmlStringControl(MvcHtmlString htmlString)
        {
            HtmlString = htmlString;
        }

        public override void RenderControl(System.Web.UI.HtmlTextWriter writer)
        {
            writer.Write(HtmlString.ToHtmlString());
        }
    }
}
